package com.zhangtai.modules.dto;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.zhangtai.config.LongJsonDeserializer;
import com.zhangtai.config.LongJsonSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
@Data
public class ContractTerminateDto {
    @JsonDeserialize(using = LongJsonDeserializer.class)
    @JsonSerialize(using = LongJsonSerializer.class)
    private Long id;
    @JsonDeserialize(using = LongJsonDeserializer.class)
    @JsonSerialize(using = LongJsonSerializer.class)
    private Long oid;
    @ApiModelProperty("工号")
    private String code;
    @ApiModelProperty("姓名")
    private String name;
    @ApiModelProperty("性别 1男 2女")
    private Integer gender;
    @ApiModelProperty("公司id")
    private Long orgId;
    private String orgName;
    @ApiModelProperty("部门id")
    private Long unitId;
    private String unitName;
    @ApiModelProperty("岗位id")
    private Long jobId;
    private String jobName;
    @ApiModelProperty("签署原因")
    private String reason;

    @ApiModelProperty("合同类型")
    private Integer beginContractType;
    @ApiModelProperty("合同生效时间")
    private Date contractBeginDate;
    @ApiModelProperty("合同预计结束时间")
    private Date contractEndDate;
    @ApiModelProperty("甲方主体")
    private String employerCompany;
    @ApiModelProperty("合同期限类型：0 半年 1 一年 2 两年 3三年")
    private Integer contractTimeType;
    @ApiModelProperty("新签合同签订地址")
    private String beginContractUrl;
    @ApiModelProperty("解除合同签订时间")
    private Date endSignDate;
    @ApiModelProperty("解除合同签订地址")
    private String endContractUrl;
    @ApiModelProperty("当前应用合同  0：未生效 1：已生效 2：失效")
    private Integer status;
    @ApiModelProperty("合同实际终止日期")
    private Date endTime;
    @ApiModelProperty("解除类型 1：合同解除 2：终止解除")
    private Integer endType;
    @ApiModelProperty("签约类型 （1：新签 2：续签 3：解除 4:调动新签）")
    private Integer type;
    @ApiModelProperty("签署原因")
    private Integer  operateType;
    @ApiModelProperty("合同类型 1:劳动合同 2：实习协议 3：退休返聘协议   4 解除协议")
    private String contractType;

    @JsonDeserialize(using = LongJsonDeserializer.class)
    @JsonSerialize(using = LongJsonSerializer.class)
    @ApiModelProperty("之前活跃合同id")
    private Long renewContractId;

    @JsonDeserialize(using = LongJsonDeserializer.class)
    @JsonSerialize(using = LongJsonSerializer.class)
    @ApiModelProperty("之前活跃合同id的甲方id")
    private Long companyId;
    @ApiModelProperty("用工类型 0：全日制用工，1：非全日制用工，2：劳务派遣用工 ，3：退休返聘，4：管培生，5：实习生")
    private String jobType;
    @ApiModelProperty("员工状态，0：未入职，2：正式，3：离职，4：退休，5：内退，6：离休，7：待岗，9：实习，10：实习结束，11：调动中")
    private String employeestatus;

    @ApiModelProperty("e签宝流程id")
    private Integer esignFlowId;

    @ApiModelProperty("离职日期")
    private Date dimissionTime;
}
